import instance from '@/axios'

// 用户登录接口封装
export const login =(data)=> {
    return instance.post('/applet/loginByPhonePwd', data)
}
//获取当前登陆用户信息
export const getLoginUserMessageById = () => {
    return instance.post('/biz/getLoginUserMessageById')
}
//获取店铺id
export const getShopInfo = () => {
    return instance.post('/biz/shop/getShopInfo')
}
//获取分组信息
export const showShopCommodity = (data) => {
    return instance.post('/applet/commodityGroup/showShopCommodityCustomizeGroup',data)
}
//新建商品分组
export const addShopCommodity = (data) => {
    return instance.post('/applet/commodityGroup/addShopCommodityCustomizeGroup', data)
}
//删除商品分组
export const delShopCommodity = (data) => {
    return instance.post('/applet/commodityGroup/delShopCommodityCustomizeGroup', data)
}
//编辑商品分组名称
export const editShopCommodity = (data) => {
    return instance.post('/applet/commodityGroup/editShopCommodityCustomizeGroup', data)
}
//获取手机验证码
export const sendSmsCode = (data) => {
    return instance.post('/biz/sendSmsCode', data)
}
//手机验证码登录
export const phoneSmsCodeLogin = (data) => {
    return instance.post('/applet/phoneSmsCodeLogin', data)
}
